EventPatternSourceBase.Add(Delegate, Action) method¶
Defined in
Type: EventPatternSourceBaseSystem.Reactive
Assembly: System.Reactive.dll
Applies to
netstandard2.0
protected void Add(Delegate handler, Action<TSender?, TEventArgs> invoke)
Summary: Adds the specified event handler, causing a subscription to the underlying source.
Parameters
| Name | Type | Description |
|---|---|---|
handler | Delegate | Event handler to add. The same delegate should be passed to the [Remove](# operation in order to remove the event handler. |
invoke | Action | Invocation delegate to raise the event in the derived class. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | handler or invoke is null. |